# 方法的重写
class Felines:
    def speciality(self):
        print("猫科动物善于奔跑")
class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f'{self.name}爱吃鱼')
        print(f'{self.name}会爬树')


# super（）函数
class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f'{self.name}爱吃鱼')
        print(f'{self.name}会爬树')
        print('-'*20)
        super().speciality()